package com.finger.crowd.service.api;

import com.finger.crowd.entity.Role;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface RoleService {

    PageInfo getPageInfoForRole(Integer pageNum, Integer pageSize, String keyword);

    int saveRole(String roleName);

    Role selectRoleById(Integer id);

    int updateRole(Role role);

    int remove(List<Integer> ids);

    List<Role> selectAssignedByAdminId(Integer adminId);

    List<Role> selectUnAssignedByAdminId(Integer adminId);
}
